package com.xxwu.aspect.controller;

import com.xxwu.aspect.component.MyAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Component
public class TestDemo {
    @MyAspect
    @RequestMapping("/t1")
    public String t1(){
        log.info("t1方法执行...");
        return "t1";
    }
}
